package ch.sfug.player{

	import ch.sfug.player.ITrack;

	public interface IPlaylist {
		/**
		* number of tracks in playlist
		*/
		function get numTrack():int;

		/**
		* get a track at position
		* @return	track or null
		* @param	pos	position in playlist
		*/
		function getTrack(pos:int):ITrack;

		/**
		* adds a track to the playlist
		* @param	trk	to add track
		*/
		function addTrack(trk:ITrack):void;

		/**
		* removes a track from the playlist
		* @param	trk	track
		*/
		function removeTrack(trk:ITrack):void;

		/**
		* clears the playlist
		*/
		function clear():void;

		/**
		* gets a specific info about the playlist
		* @return	info
		* @param	id	info id
		*/
		function getPlaylistInfo(id:String):Object;

		/**
		* sets a specific playlist info
		* @param	id	info id
		* @param	obj	info object
		*/
		function setPlaylistInfo(id:String,obj:Object):void;

	}

}

